﻿<Window x:Class="EPE.WPF.DepartmentInfoEditForm"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="修改机构信息" Height="300" Width="470"   ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
    <Grid Style="{StaticResource GridStyle}">
        <GroupBox Header="机构信息" Grid.Row="1" Style="{StaticResource GroupBoxStyle}" Margin="5">
            <Grid Style="{StaticResource BorderGridStyle}">
                <Grid.RowDefinitions>
                    <RowDefinition Height="30"></RowDefinition>
                    <RowDefinition Height="30"></RowDefinition>
                    <RowDefinition Height="30"></RowDefinition>
                    <RowDefinition Height="100"></RowDefinition>
                    <RowDefinition Height="*"></RowDefinition>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition  Width="400"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Label Grid.Row="0" Grid.Column="0" Content="机构名称" Name="lblDepartmentName" Style="{StaticResource LabelStyle}" />
                <Label Grid.Row="0" Grid.Column="0"  Name="lblId" Visibility="Hidden"></Label>
                <TextBox Grid.Row="0" Grid.Column="1" Name="txtDepartmentName" Style="{StaticResource TextBox320}"></TextBox>
                <Label Grid.Row="1" Grid.Column="0" Content="负责人" Style="{StaticResource LabelStyle}" />
                <StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal">
                    <TextBox  Name="txtPrincipal" Width="225" Style="{StaticResource TextBox320}"></TextBox>
                    <Button Name="btnSelect" Style="{StaticResource ButtonStyle}"  Click="btnSelect_Click">
                        <StackPanel Orientation="Horizontal" >
                            <Image Source="/resources/image/close06.png" Stretch="Fill" Style="{StaticResource ButtonImageStyle}"></Image>
                            <Label Content="选择" HorizontalAlignment="Center" Style="{StaticResource ButtonLabelStyle}"></Label>
                        </StackPanel>
                    </Button>
                    <Label Name="lblPrincipal" Visibility="Hidden"></Label>
                </StackPanel>

                <Label Grid.Row="2" Grid.Column="0" Content="上级机构" Name="lblParentId" Style="{StaticResource LabelStyle}" />
                <ComboBox Grid.Row="2" Grid.Column="1" Name="drpParentId" Style="{StaticResource ComboBoxStyle}">
                  
                </ComboBox>
                <Label Grid.Row="3" Grid.Column="0" Content="备注" Name="lblRemark" Style="{StaticResource LabelStyle}" />
                <TextBox Grid.Row="3" Grid.Column="1" Name="txtRemark" Style="{StaticResource TextAreaStyle}"></TextBox>
                <StackPanel  Grid.Row="4" Grid.Column="1" Grid.ColumnSpan="2" Orientation="Horizontal" >
                    <Button Name="btnSave"  Style="{StaticResource ButtonStyle}" Click="btnSave_Click">
                        <StackPanel Orientation="Horizontal" >
                            <Image Source="/resources/image/close05.png" Stretch="Fill" Style="{StaticResource ButtonImageStyle}"></Image>
                            <Label Content="保存" HorizontalAlignment="Center"  Style="{StaticResource ButtonLabelStyle}"></Label>
                        </StackPanel>
                    </Button>
                    <Button Name="btnClose"   Style="{StaticResource ButtonStyle}" Click="btnClose_Click">
                        <StackPanel Orientation="Horizontal" >
                            <Image Source="/resources/image/close07.png" Stretch="Fill" Style="{StaticResource ButtonImageStyle}"></Image>
                            <Label Content="取消"  HorizontalAlignment="Center"  Style="{StaticResource ButtonLabelStyle}"></Label>
                        </StackPanel>
                    </Button>
                </StackPanel>
            </Grid>
        </GroupBox>
    </Grid>
</Window>
